﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace RunnerX
{
    public static class RunnerConfig
    {
        
        public static double AnimatedSpriteFrameRate
        {
            get { return Convert.ToDouble(ConfigurationManager.AppSettings["AnimatedSpriteFrameRate"]); }
        }

        public static EnSize PlayerSpriteSize
        {
            get
            {
                return new EnSize
                           {
                               Height = Convert.ToInt32(ConfigurationManager.AppSettings["PlayerSpriteHeight"]),
                               Width = Convert.ToInt32(ConfigurationManager.AppSettings["PlayerSpriteWidth"])
                           };
            }
        }

        public static int PlayerAnimationFrameCount
        {
            get
            {
                return Convert.ToInt32(ConfigurationManager.AppSettings["PlayerAnimationFrameCount"]);
            }
        }
    }
}
